package routes

import (
	"easy-gin/controllers"

	"github.com/gin-gonic/gin"
)

func RegisterRoutes(router *gin.Engine) {
	router.GET("/", controllers.IndexHome)
	router.GET("/index", controllers.IndexHome)

	router.GET("/users/:id", controllers.UserGet)
	router.GET("/users", controllers.UserGetList)
	router.POST("/users", controllers.UserPost)
	router.PUT("/users/:id", controllers.UserPut)
	router.PATCH("/users/:id", controllers.UserPut)
	router.DELETE("/users/:id", controllers.UserDelete)

	router.GET("/getDiskInfo", controllers.GetDiskInfo)
	router.POST("/uploadFile", controllers.UpdaloadFile)
	router.POST("/uploadMulti", controllers.UploadMultiFile)
	router.GET("/getFiles", controllers.GetFiles)
	router.GET("/getImages", controllers.GetImages)
	router.GET("/getMusics", controllers.GetMusics)
	router.GET("/getVideos", controllers.GetVideos)
	router.GET("/getDocs", controllers.GetDocs)
	router.GET("/getOtherFiles", controllers.GetOtherFiles)
	// router.GET("/searchFiles", controllers.SearchFiles)

	router.GET("/getFilesFromSql", controllers.GetFilesFromSql)

	router.GET("/testRetrofit", controllers.TestRetrofit)
}
